{extend name="main/index" /}
{block name="main"}

<div class="content-page">
    <div class="content">


        <table class="table table-hover">

            <!-- On rows -->
            <tr>
                <th class="active">ID</th>
                <th class="active">轮播图</th>
                <th class="success">对应书名</th>
                <th class="active">状态</th>
                <th class="info">操作</th>
            </tr>
            <!-- On cells (`td` or `th`) -->
            {volist name="data" id="vo"}
            <tr >
                <td style="line-height: 40px">{$vo.id}</td>
                <td style="line-height: 40px"><img src="/uploads/{$vo.url}" alt="" height="40px"></td>
                <td style="line-height: 40px">{$vo.name}</td>
                <td style="line-height: 40px"><a href="{:url('admin/images/dostatu',['id'=>$vo.id])}">{$vo.statu==0? '激活' : '禁用'}</a></td>
                <td style="line-height: 40px">
                    <a class="btn btn-default" href="{:url('admin/images/edit',['id'=>$vo.id])}" >修改</a>
                    <a class="btn btn-default" href="{:url('admin/images/del',['id'=>$vo.id])}" >删除</a>



                </td>
            </tr>
            {/volist}
        </table>
    </div>
</div>

{/block}
